<div class="form">

    <?php $form=$this->beginWidget('CActiveForm'); ?>

    <p class="note">Fields with <span class="required">*</span> are required.</p>

    <?php echo CHtml::errorSummary($model); ?>

    <div class="row">
        <?php echo $form->labelEx($model,'title'); ?>
        <?php echo $form->textField($model,'title',array('size'=>100,'maxlength'=>200)); ?>
        <?php echo $form->error($model,'title'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'summary'); ?>
        <?//php echo CHtml::activeTextArea($model,'content',array('rows'=>10, 'cols'=>70)); ?>
        <?php echo $form->error($model,'summary'); ?>

        <?php $this->widget('application.extensions.ckeditor.CKEditor', array(
			'model'=>$model,
			'attribute'=>'summary',
			'language'=>'en',
			'editorTemplate'=>'full',
			));
		?>

    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'content'); ?>
        <?//php echo CHtml::activeTextArea($model,'content',array('rows'=>10, 'cols'=>70)); ?>
        <?php echo $form->error($model,'content'); ?>

        <?php $this->widget('application.extensions.ckeditor.CKEditor', array(
			'model'=>$model,
			'attribute'=>'content',
			'language'=>'en',
			'editorTemplate'=>'basic',
			)); 
		?>

    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'tags'); ?>
        <?php $this->widget('CAutoComplete', array(
            'model'=>$model,
            'attribute'=>'tags',
            'url'=>array('suggestTags'),
            'multiple'=>true,
            'htmlOptions'=>array('size'=>50),
        )); ?>
        <p class="hint">Please separate different tags with commas.</p>
        <?php echo $form->error($model,'tags'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'status'); ?>
        <?php echo $form->dropDownList($model,'status',Lookup::items('PostStatus')); ?>
        <?php echo $form->error($model,'status'); ?>
    </div>
	
	
	
    <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Simpan' : 'Save'); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->